package com.fengye.school.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author sky
 * @date 2021/4/22 14:41
 */
@Getter
@Setter
@AllArgsConstructor
public class ResponsePageResult<T> {
     private int code;
     private String msg;
     private long count;
     private List<T> data;

     public static <T> ResponsePageResult<T> success(String msg, long count, List<T> data){
         return new ResponsePageResult<>(0, msg, count, data);
     }
}
